import React from 'react'
import { TextInput, View, TouchableOpacity, Text } from 'react-native'
const Btn = ({ style, children, ...rest }) => {
    return <TouchableOpacity {...rest}
      style={{ borderRadius: 5, justifyContent: 'center', alignItems: 'center', ...style }}>
      <Text style={{ color: 'white' }}>{children}</Text>
    </TouchableOpacity>
  }

const Advice = () => {
  return (
    <View style={{ alignItems: 'center' }}>
        <View style={{height: '80%',padding: '5%', backgroundColor: '#fff', width: '100%'}}>
            <TextInput placeholder='请输入您宝贵的意见或建议' >
            </TextInput>
        </View>
        <Btn
            // onPress = {upChange}
            style={{ width: '20%', height: 40, backgroundColor: '#A0D377', marginTop: 20 }}>
            确认修改
        </Btn>
    </View>
  )
}

export default Advice